package com.TTBook.core.image.model;

import java.io.Serializable;

public class BookImgRel implements Serializable {
    private String imgId;

    private String bookid;

    private String imgLocationSerNum;

    private static final long serialVersionUID = 1L;

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId == null ? null : imgId.trim();
    }

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid == null ? null : bookid.trim();
    }

    public String getImgLocationSerNum() {
        return imgLocationSerNum;
    }

    public void setImgLocationSerNum(String imgLocationSerNum) {
        this.imgLocationSerNum = imgLocationSerNum == null ? null : imgLocationSerNum.trim();
    }

    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof BookImgRel)) {
            return false;
        }
        BookImgRel other = (BookImgRel) that;
        return this.getImgId() == null ? other == null : this.getImgId().equals(other.getImgId())
            && this.getBookid() == null ? other == null : this.getBookid().equals(other.getBookid())
            && this.getImgLocationSerNum() == null ? other == null : this.getImgLocationSerNum().equals(other.getImgLocationSerNum());
    }

    public int hashCode() {
        int hash = 23;
        if (getImgId() != null) {
            hash *= getImgId().hashCode();
        }
        if (getBookid() != null) {
            hash *= getBookid().hashCode();
        }
        if (getImgLocationSerNum() != null) {
            hash *= getImgLocationSerNum().hashCode();
        }
        return hash;
    }
}